package com.tools.dao.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.tools.dao.QueryDetailDao;
import com.tools.entity.QueryDetail;
import com.tools.mapper.QueryDetailMapper;

@Repository(value = "queryDetailDao")
public class QueryDetailDaoImpl implements QueryDetailDao {
    
    @Resource(name = "queryDetailMapper")
    private QueryDetailMapper queryDetailMapper;
    
    public int insert(QueryDetail queryDetail) {
        // TODO Auto-generated method stub
        return queryDetailMapper.insert(queryDetail);
    }
    
    public int delete(int qid) {
        
        // TODO Auto-generated method stub
        return queryDetailMapper.delete(qid);
    }
    
    public int update(QueryDetail queryDetail) {
        // TODO Auto-generated method stub
        return queryDetailMapper.update(queryDetail);
    }
    
}
